package com.marvels.financial.loan.dao;

import com.marvels.financial.loan.dto.McfeDebtorAmountInfoTmpDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface McfeDebtorAmountInfoTmpDao {
    int deleteByPrimaryKey(Long id);

    int insert(McfeDebtorAmountInfoTmpDTO record);

    int insertSelective(McfeDebtorAmountInfoTmpDTO record);

    McfeDebtorAmountInfoTmpDTO selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(McfeDebtorAmountInfoTmpDTO record);

    int updateByPrimaryKey(McfeDebtorAmountInfoTmpDTO record);
    
    /**
     * 更新批次号
     * @param batchId
     * @return
     */
    int updateBatchId(@Param(value="batchId") String batchId);
    
    /**
     * 根据batchId查询
     * @param batchId
     * @return
     */
    List<McfeDebtorAmountInfoTmpDTO> selectByBatchId(@Param(value="batchId") String batchId);
    
    
    /**
     * 根据loanId查询当天数据
     * @param loanId
     * @return
     */
    McfeDebtorAmountInfoTmpDTO selectByLoanId(@Param(value="loanId") String loanId);
}